<?php
error_reporting(E_ALL ^ E_NOTICE);
if(!empty($_GET))
{
	$id = $_GET['id'];
	$banner = selectone('banner',"name='pro_banner'");
	$product = selectone('product',"Id='$id'");
	$product01 = selectone('product',"cate='LED透明屏TB系列'");
	
	$limit = "limit 0,1";
	$nav = selectAll('pro_cate','pid=0');
	$cate = empty($_GET['cate'])?1:$_GET['cate'];
	$productpage = selectLimit('product','*','Id<'.$id,'order by Id desc',$limit)[0];
	$limits = "limit 0,1";
	$productpages = selectLimit('product','*','Id>'.$id,'order by Id ',$limits)[0];
	$i=!empty($productpages);
	$j=!empty($productpage);
}


include('app/index/product_detail/html/product_detail.html');
?>